{extends file="./main.tpl"}
{block name=head}
<script type="text/javascript">
  $(document).ready(function() {
    $('#licenseNo').focus();
  });
function myFunction()
{
  if(confirm("You Want To Remove This Record")== true)
	{
		return true;
	}
	else
	{
		return false;
	}
}
</script>
{/block}
{block name=body}
  <table cellpadding="0" cellspacing="0" border="1" align="center">
  		<tr>
  		  <td align="center" colspan="3"><b>Purchase List</b></td>
  		</tr>
  	  <tr>
  		  <th NOWRAP><b>&nbsp;</b></th>
  			<th><b>Party Name</b></th>
  			<th><b>purchaseDate</b></th>
  		</tr>
  	  {section name="sec" loop=$purchseArray}
  	 <tr>
  	  <td align="center"><a href="purchseDetail.php?purchaseMasterId={$purchseArray[sec].purchaseMasterId}" class="link">Detail</a></td>
  	  <td align="left">{$purchseArray[sec].partyName}</td>
  	  <td align="left">{$purchseArray[sec].purchaseDate} </td>
  	</tr>
  	{/section}
  </table>
</body>
{/block}